import Vue from 'vue'
import App from './App'


Vue.config.productionTip = false

App.mpType = 'app'

Vue.prototype.checkMobile = function(s){  
	var reg =/^(13[0-9]|14[5|7]|15[0|1|2|3|4|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\d{8}$/;
	return reg.test(s);
}

Vue.prototype.checkEmail = function(email) { 
  var reg = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/; 
    return reg.test(email); 
}

Vue.prototype.checkCardNo = function(card) { 
  var reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/; 
    return reg.test(card); 
}

Vue.prototype.checkStringEmpty =function(str){
  if(null == str || "" == str || typeof(str) == "undefined"|| ' ' == str){
    return false;
  }
  return true;
}

const app = new Vue({
    ...App
})
app.$mount()
